/**
 * Created by Panda on 2017/2/12
 */
(function () {
    'use strict';

    angular
        .module('com.akxx.aqzyk')
        .directive('autoHeight', autoHeight);

    /** @ngInject */
    function autoHeight($window) {
        return {
            restrict: "EA",
            scope: {
                fix:'='
            },
            link : function($scope, element, attrs) {
                var windowHeight = $window.innerHeight; //获取窗口高度
                var fix = $scope.fix;
                element.css('height', (windowHeight + fix) + 'px');
            }
        }
    }

})();
